#pragma once
#include <windows.h>

#include <string.h>
#include <iostream>
#include <gdiplus.h>
#include <mmsystem.h>
#include <tchar.h>

using namespace std;
using namespace Gdiplus;
#pragma comment (lib,"Gdiplus.lib")


class NowPlaying
{
private:
	HWND hWnd;
	int x, y, width, height;

	wstring songTitle;
	int titleLength;
	int direction;
	WCHAR title[260];
	int textStart;
	
public:
	NowPlaying(int x, int y, int width, int height, HWND hWnd)
	{
		this->hWnd = hWnd;
		this->x = x;
		this->y = y;
		this->width = width;
		this->height = height;

		titleLength = 0;

		direction = 1; // 1 / -1
		textStart = 0;


		
		
	}

	~NowPlaying()
	{
		
	}
	

	void update();
	void draw(HDC hdc);
	void setName(wstring c);





};